package hotciv.standard;

import java.awt.Color;

import hotciv.framework.*;

/** Enumeration of the two players in HotCiv: Red and Blue.
<#if type == "code">

<#include "/data/author.txt">
</#if>
*/
public enum StandardPlayer implements Player {

  RED(Color.red),
  BLUE(Color.cyan);

  private int wonAttacks=0;
  private java.awt.Color color;
  
  private StandardPlayer(java.awt.Color theColor) {
    this.color = theColor;
  }

  public Color getColor() {
    return color;
  }
  
  public void incrementWonAttackts() {
	  wonAttacks++;
  }
  
  public void resetWonAttacks() {
	  wonAttacks = 0;
  }
  
  public int getWonAttacks() {
	  return wonAttacks;
  }
  
}
